import {createApp} from 'vue'

import App from '@/App.vue'
import '@/style.css'
//导入store
import store from '@/store/index'
//引入路由文件
import router from '@/router/index'
//引入Element组件
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
//百度地图
import BaiduMap, {BmlMarkerClusterer} from 'vue-baidu-map-3x'
//二维码
import VueQrcode from '@chenfengyuan/vue-qrcode'
//人脸识别
import "tracking";
import "tracking/build/data/face";
import "@/asset/trackingX.js"

//使用路由组件
const app = createApp(App)
//全局注册饿了么图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

app.use(store)
app.use(router)
app.use(ElementPlus)
app.use(BaiduMap, {ak: 'cGs6f0TrGcWOWSb58DMBCX4FXe4VCcY7',});
app.component('bml-marker-cluster', BmlMarkerClusterer)
app.component(VueQrcode.name, VueQrcode)

app.mount('#app')
